#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from init_extends.blueprint_utils import BaseBlueprint
from init_extends.init_extends import api

news_bp = BaseBlueprint('作业管理模块', __name__, url_prefix='/news')


def task_urls():
    from apps.news import views

    news_bp.add_resource(views.NewsManageView, '/list/', methods=['GET', 'POST'])
    news_bp.add_resource(views.StatisticsNewsView, '/statistics/', methods=['GET'])

    api.register_blueprint(news_bp)

